package com.zxw.auth.controller;

import com.zxw.common.api.ApiResult;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;


/**
 * <p>
 * 认证服务接口
 * </p>
 *
 * @author zhanxuewei
 * @since 2022-05-19
 */
@Api(tags = "认证服务接口", description = "AuthController")
@RestController
@RequestMapping("/auth")
@Slf4j
public class AuthController {


    @ApiOperation("测试openfeign远程调用")
    @GetMapping("/test")
    public ApiResult<String> save(@RequestParam("name") String name) {
        log.info("认证服务接口...");
        return ApiResult.success(name);
    }
}

